/*
 * @Author: qf
 * @Date: 2021-05-12 18:31:50
 * @LastEditTime: 2021-05-14 12:06:12
 * @LastEditors: qf
 * @Description:
 */

import apis from './interface'

const install = Vue => {
  if (install.installed)
  { return }

  install.installed = true

  Object.defineProperties(Vue.prototype, {
    // 注意，此处挂载在 Vue 原型的 $api 对象上
    $api: {
      get() {
        return apis
      }
    }
  })
}

export default install
